﻿using System.ComponentModel.DataAnnotations;

namespace Iot.Models
{
    public class LoginViewModel
    {
        [Display(Name = "账号")]
        [Required(ErrorMessage = "{0}是必填项")]
        public string? UserName { get; set; }

        [Display(Name = "密码")]
        [Required(ErrorMessage = "{0}是必填项")]
        public string? Password { get; set; }
    }
}
